package com.kehutong.common.excel.entity;

import java.io.Serializable;

public class ImportResult implements Serializable {
    private static final long serialVersionUID = -1L;


    public ImportResult(Integer importTotal, Integer successTotal, String errorMsg) {
        this.importTotal = importTotal;
        this.successTotal = successTotal;
        this.errorMsg = errorMsg;
    }

    /**原始条数*/
    private Integer importTotal;

    /**成功条数*/
    private Integer successTotal;

    /**失败条数*/
    private Integer failTotal;

    /**失败提示*/
    private String errorMsg;



    public Integer getImportTotal() {
        return importTotal;
    }

    public void setImportTotal(Integer importTotal) {
        this.importTotal = importTotal;
    }

    public Integer getSuccessTotal() {
        return successTotal;
    }

    public void setSuccessTotal(Integer successTotal) {
        this.successTotal = successTotal;
    }

    public Integer getFailTotal() {
        return importTotal-successTotal;
    }


    public String getErrorMsg() {
        return errorMsg;
    }

    public void setErrorMsg(String errorMsg) {
        this.errorMsg = errorMsg;
    }
}
